<!--
* StorezPro
* Copyright (c) 2009 by Phoenix Resourcez
* All Rights Reserved
* $Id: user_receipt.html,v 1.6 2009/11/25 08:36:55 Phoenix Exp $
-->
<!-- IF S_ORDER_USERID eq S_USERID or S_CODE eq S_ORDER_CODE -->
	<div class="table1">
		<div style="float:left;" class="title"><b>{L_ORDERRECEIPT}</b> {U_PRINTRECEIPT}</div>
		<div style="float:right;" class="title"><input type="button" value="{L_BROWSESTORE}" onclick="self.location.href='{U_STOREZ11}'" /></div><br />
	</div>
	<br />
	<table border="0" cellspacing="0" width="100%" cellpadding="3" class="table1">
	<tr>
	<td align="left" style="background:{S_BGCOLOR2}; width:50%;">
	<!-- IF S_ORDERFREE eq 0 -->
		<b>{L_BILLTO}</b>
	<!-- ENDIF -->
	</td>
	<!-- IF S_ORDERINSTANT eq 0 -->
		<td align="left" style="background:{S_BGCOLOR2}; width:50%;"><b>{L_SHIPTO}</b></td>
	<!-- ENDIF -->
	</tr>
	<tr>
	<td style="width:50%;" valign="top">
	<table border="0" width="100%" cellpadding="0">
	<tr>
	<td style="width:100%;">
	<!-- IF S_ORDERFREE eq 0 -->
		{S_BILLFIRSTNAME} {S_BILLLASTNAME}<br />
		<!-- IF S_ORDERINSTANT eq 0 -->
			{S_BILLADDRESS1}
			<!-- IF S_BILLADDRESS2 -->
				<br />{S_BILLADDRESS2}
			<!-- ENDIF -->
			<br />{S_BILLCITY}, 
		<!-- ENDIF -->
		{S_BILLSTATE} {S_BILLZIP}
		<br />{S_BILLCOUNTRY}
		<br /><br />
	<!-- ENDIF -->
	<b>{L_PAYMENTMETHOD}</b> {S_PAYMETHODNAME}
	</td></tr></table>
	</td>
	<!-- IF S_ORDERINSTANT eq 0 -->
		<td style="width:50%;" valign="top">
		<table border="0" width="100%" cellpadding="0">
		<tr>
		<td style="width:100%;">{S_SHIPFIRSTNAME} {S_SHIPLASTNAME}<br />
		{S_SHIPADDRESS1}
		<!-- IF S_SHIPADDRESS2 -->
			<br />{S_SHIPADDRESS2}
		<!-- ENDIF -->
		<br />{S_SHIPCITY}, 
		{S_SHIPSTATE} {S_SHIPZIP}
		<br />{S_SHIPCOUNTRY}
		<br /><br /><b>{L_SHIPPINGMETHOD}</b> {S_SHIPMETHODNAME}
		</td></tr></table>
		</td>
	<!-- ENDIF -->
	</tr></table>
	<br />
	<table cellspacing="0" cellpadding="3" width="100%">
	<tr>
       <td align="left" style="width:50%;"><b>{L_ORDER} # {S_ORDERID}</b></td>
		<td align="right"><b>{L_ORDERDATE}</b> {S_DATETIME}</td>
	</tr>
	<tr>
       <td align="left" style="width:50%;"><b>{L_STATUS}</b> {S_STATUSLABEL}
	   <!-- IF S_STATUSLABEL2 --> <b>(</b> {S_STATUSLABEL2} <b>)</b><!-- ENDIF -->
	   </td>
	<td align="right"><b>{L_STATUSDATE}</b> {S_STATUSDATE}</td>
       </tr>
	</table>
	<br />
	<table cellspacing="0" cellpadding="3" width="100%">
	<tr style="background:{S_BGCOLOR2};">
		<td align="left"><b>{L_ITEMS}</b></td>
		<td align="center"><b>{L_QTY}</b></td>
		<td align="center"><b>{L_WEIGHT}</b></td>
		<td align="center"><b>{L_COST}</b></td>
		<td align="center"><b>{L_TOTAL}</b></td>
	</tr>
	<!-- BEGIN items -->
		<!-- IF items.S_COUNT gt 1 -->
			<tr><td colspan="5"><hr  /></td></tr>
		<!-- ENDIF -->
		<tr>
		<td class="option" style="width:70%;"><b>{items.S_PRODINFO}</b></td>
		<td align="center" class="content" style="width:6%;">{items.S_QTY}</td>
        <td align="right" class="content" style="width:8%;">{items.S_WEIGHT}</td>
        <td align="right" class="content" style="width:8%;">{items.S_COST}</td>
        <td align="right" class="content" style="width:8%;">{items.S_TOTAL}</td>
        </tr>
       	<!-- IF items.S_OPTIONS gt 0 -->
			<!-- BEGIN options -->
				<tr><td class="content" align="left"><b>&#8226; {items.options.S_OPTIONNAME}:</b> {items.options.S_SELECTIONNAME}</td><td class="content" colspan="4"></td></tr>
			<!-- END options -->
		<!-- ENDIF -->
		<!-- IF items.S_PRODINSTANT -->
			<!-- IF S_PAYMETHODDATA eq 9999 or S_PAYMETHODDATA eq 99999 -->
				<tr><td colspan="5"><b>&#8226; {L_INSTANTDOWNLOAD} &raquo; </b>  {L_ECHECK1}</td></tr>
			<!-- ELSEIF S_PAYMETHODDATA -->
				<tr><td colspan="5"><b>&#8226; {L_INSTANTDOWNLOAD} &raquo; </b>{items.L_THISITEM}<br />
				<!-- IF items.S_PRODDLCOUNT ge items.S_DL_ALLOWED -->
					{items.L_NODL}
				<!-- ELSEIF items.S_DL_NUM eq 1 -->
					<!-- BEGIN download -->
						<a href="{items.download.U_DL}">{items.download.S_DLNAME}</a><br />{items.L_DL}
					<!-- END download -->
				<!-- ELSEIF items.S_DL_NUM gt 1 -->
					<!-- BEGIN downloads -->
						<b>&raquo; </b><a href="{items.downloads.U_DLS}">{items.downloads.S_DLNAMES}</a><br />
					<!-- END downloads -->
					{items.L_DLS}
				<!-- ENDIF -->
				</td></tr>
			<!-- ELSE -->
				<tr><td colspan="5"><b>&#8226; {L_INSTANTDOWNLOAD} &raquo; </b> {L_NOPAYNOLINK}.</td></tr>
			<!-- ENDIF -->
		<!-- ENDIF -->
	<!-- END items -->
	<!-- IF S_ORDERFREE eq 0 -->
	<tr><td colspan="5"><hr /></td></tr>
		<tr><td align="right" class="content" colspan="5">
			{L_PRODUCTTOTAL}<b> {S_PRODUCTTOTAL}</b></td></tr>
		<tr><td align="right" class="content" colspan="5">
			{L_SHIPPINGHANDLING}<b> {S_SHIPHANDLE}</b></td></tr>
		<tr><td align="right" class="content" colspan="5">
			{L_TAX}<b> {S_TAX}</b></td></tr>
		<tr><td align="right" class="content" colspan="5">
			<br /><b>{L_GRANDTOTAL} {S_GRANDTOTAL}</b></td></tr>
		<tr><td class="content" colspan="5">
		<!-- IF S_ORDERFREE eq 0 -->
			{S_SHIPPING_INFO}
		<!-- ENDIF -->
		<!-- IF S_PAYMETHODDATA eq 9999 and S_FILEORDER ne 1 -->
				<fieldset class="genmed">{L_ECHECK2}</fieldset>
			<!-- ELSEIF S_PAYMETHODDATA eq 99999 and S_FILEORDER ne 1 -->
				<fieldset class="genmed">{L_DECLINE}</fieldset>
		<!-- ELSEIF not S_PAYMENTDONE and S_FILEORDER ne 1 -->
			{S_PAYMENT_INFO}
		<!-- ELSEIF S_PAYMENTDONE -->
			<fieldset class="genmed">
			<!-- IF S_ORDERINSTANT and S_ORDERFREE -->
				{L_FREEINSTANT} {S_SITENAME}.
			<!-- ELSEIF S_ORDERINSTANT -->
				{L_PRODUCTINSTANT} {S_SITENAME}.
			<!-- ELSE -->
				{L_PRODUCTMIXED} {S_SITENAME}.
			<!-- ENDIF -->
			</fieldset>
			<!-- ENDIF -->
		</td></tr>
	<!-- ENDIF -->
	</table>
<!-- ELSE -->
	{S_REDIRECT}
<!-- ENDIF -->
